package sctu.edu.java.year2016.team04.luoxinghua.day20160522.chapter6_1;

/**
 * Created by 落叶的思恋 on 2016/5/23.
 */
import java.util.Scanner;
public class findi {
    public static void main(String[] args) {
      Scanner scanf=new Scanner(System.in);
        int n=0;
        String str=scanf.nextLine();
        String ch=new String("i");
        for(int i=0;i<str.length();i++)
        {if(str.charAt(i)=='i')
            {n++;}
        }
        System.out.println("有几个i "+n);
        }
    }
